package cn.vconinfo.lims.delivery.model;

import java.util.ArrayList;
import java.util.List;

public class HospitalProjectLinkExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HospitalProjectLinkExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andHospitalLinkIdIsNull() {
            addCriterion("hospital_link_id is null");
            return (Criteria) this;
        }

        public Criteria andHospitalLinkIdIsNotNull() {
            addCriterion("hospital_link_id is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalLinkIdEqualTo(Long value) {
            addCriterion("hospital_link_id =", value, "hospitalLinkId");
            return (Criteria) this;
        }

        public Criteria andHospitalLinkIdNotEqualTo(Long value) {
            addCriterion("hospital_link_id <>", value, "hospitalLinkId");
            return (Criteria) this;
        }

        public Criteria andHospitalLinkIdGreaterThan(Long value) {
            addCriterion("hospital_link_id >", value, "hospitalLinkId");
            return (Criteria) this;
        }

        public Criteria andHospitalLinkIdGreaterThanOrEqualTo(Long value) {
            addCriterion("hospital_link_id >=", value, "hospitalLinkId");
            return (Criteria) this;
        }

        public Criteria andHospitalLinkIdLessThan(Long value) {
            addCriterion("hospital_link_id <", value, "hospitalLinkId");
            return (Criteria) this;
        }

        public Criteria andHospitalLinkIdLessThanOrEqualTo(Long value) {
            addCriterion("hospital_link_id <=", value, "hospitalLinkId");
            return (Criteria) this;
        }

        public Criteria andHospitalLinkIdIn(List<Long> values) {
            addCriterion("hospital_link_id in", values, "hospitalLinkId");
            return (Criteria) this;
        }

        public Criteria andHospitalLinkIdNotIn(List<Long> values) {
            addCriterion("hospital_link_id not in", values, "hospitalLinkId");
            return (Criteria) this;
        }

        public Criteria andHospitalLinkIdBetween(Long value1, Long value2) {
            addCriterion("hospital_link_id between", value1, value2, "hospitalLinkId");
            return (Criteria) this;
        }

        public Criteria andHospitalLinkIdNotBetween(Long value1, Long value2) {
            addCriterion("hospital_link_id not between", value1, value2, "hospitalLinkId");
            return (Criteria) this;
        }

        public Criteria andObjectIdIsNull() {
            addCriterion("object_id is null");
            return (Criteria) this;
        }

        public Criteria andObjectIdIsNotNull() {
            addCriterion("object_id is not null");
            return (Criteria) this;
        }

        public Criteria andObjectIdEqualTo(Long value) {
            addCriterion("object_id =", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdNotEqualTo(Long value) {
            addCriterion("object_id <>", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdGreaterThan(Long value) {
            addCriterion("object_id >", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdGreaterThanOrEqualTo(Long value) {
            addCriterion("object_id >=", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdLessThan(Long value) {
            addCriterion("object_id <", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdLessThanOrEqualTo(Long value) {
            addCriterion("object_id <=", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdIn(List<Long> values) {
            addCriterion("object_id in", values, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdNotIn(List<Long> values) {
            addCriterion("object_id not in", values, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdBetween(Long value1, Long value2) {
            addCriterion("object_id between", value1, value2, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdNotBetween(Long value1, Long value2) {
            addCriterion("object_id not between", value1, value2, "objectId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdIsNull() {
            addCriterion("hospital_document_id is null");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdIsNotNull() {
            addCriterion("hospital_document_id is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdEqualTo(String value) {
            addCriterion("hospital_document_id =", value, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdNotEqualTo(String value) {
            addCriterion("hospital_document_id <>", value, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdGreaterThan(String value) {
            addCriterion("hospital_document_id >", value, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_document_id >=", value, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdLessThan(String value) {
            addCriterion("hospital_document_id <", value, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdLessThanOrEqualTo(String value) {
            addCriterion("hospital_document_id <=", value, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdLike(String value) {
            addCriterion("hospital_document_id like", value, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdNotLike(String value) {
            addCriterion("hospital_document_id not like", value, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdIn(List<String> values) {
            addCriterion("hospital_document_id in", values, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdNotIn(List<String> values) {
            addCriterion("hospital_document_id not in", values, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdBetween(String value1, String value2) {
            addCriterion("hospital_document_id between", value1, value2, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentIdNotBetween(String value1, String value2) {
            addCriterion("hospital_document_id not between", value1, value2, "hospitalDocumentId");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameIsNull() {
            addCriterion("hospital_document_name is null");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameIsNotNull() {
            addCriterion("hospital_document_name is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameEqualTo(String value) {
            addCriterion("hospital_document_name =", value, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameNotEqualTo(String value) {
            addCriterion("hospital_document_name <>", value, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameGreaterThan(String value) {
            addCriterion("hospital_document_name >", value, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_document_name >=", value, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameLessThan(String value) {
            addCriterion("hospital_document_name <", value, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameLessThanOrEqualTo(String value) {
            addCriterion("hospital_document_name <=", value, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameLike(String value) {
            addCriterion("hospital_document_name like", value, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameNotLike(String value) {
            addCriterion("hospital_document_name not like", value, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameIn(List<String> values) {
            addCriterion("hospital_document_name in", values, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameNotIn(List<String> values) {
            addCriterion("hospital_document_name not in", values, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameBetween(String value1, String value2) {
            addCriterion("hospital_document_name between", value1, value2, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andHospitalDocumentNameNotBetween(String value1, String value2) {
            addCriterion("hospital_document_name not between", value1, value2, "hospitalDocumentName");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdIsNull() {
            addCriterion("project_document_id is null");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdIsNotNull() {
            addCriterion("project_document_id is not null");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdEqualTo(Long value) {
            addCriterion("project_document_id =", value, "projectDocumentId");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdNotEqualTo(Long value) {
            addCriterion("project_document_id <>", value, "projectDocumentId");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdGreaterThan(Long value) {
            addCriterion("project_document_id >", value, "projectDocumentId");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdGreaterThanOrEqualTo(Long value) {
            addCriterion("project_document_id >=", value, "projectDocumentId");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdLessThan(Long value) {
            addCriterion("project_document_id <", value, "projectDocumentId");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdLessThanOrEqualTo(Long value) {
            addCriterion("project_document_id <=", value, "projectDocumentId");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdIn(List<Long> values) {
            addCriterion("project_document_id in", values, "projectDocumentId");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdNotIn(List<Long> values) {
            addCriterion("project_document_id not in", values, "projectDocumentId");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdBetween(Long value1, Long value2) {
            addCriterion("project_document_id between", value1, value2, "projectDocumentId");
            return (Criteria) this;
        }

        public Criteria andProjectDocumentIdNotBetween(Long value1, Long value2) {
            addCriterion("project_document_id not between", value1, value2, "projectDocumentId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}